import {
    inputchange,
    toast
} from '../../../utils/util'

Page({
    data: {
        inputId:'',
        inputName:''
    },
    onLoad(){
        this.gitAddEquipment()
    },
    onShow(){
        this.setData({
            inputId:'',
            inputName:'' 
        })
    },
    gitAddEquipment(){

    },
    next(){
        if(!this.data.inputId){
            toast('请填写设备id')
            return
        }
        if(!this.data.inputName){
            toast('请填写设备备注')
            return
        }
        wx.navigateTo({
            url:'/packagePay/pages/device-search/device-search?id=' + this.data.inputId + '&name=' + this.data.inputName
        })
    },
    inputchange(event){
        inputchange(event,this)
    }
})